﻿using System;
using System.Data;
using System.Data.Common;
using Liger.Common;
using Liger.Data;

namespace EasyFMS.Model
{

	/// <summary>
	/// 实体类vIncome
	/// </summary>
	[Serializable]
	public class vIncome : Entity 
	{ 
		 public vIncome() 
            : base("vIncome") 
        { 

        }


		#region Model
		private int _UID;
		private int? _BillID;
		private string _BillNo;
		private int? _SeqNO;
		private string _FeeType;
		private string _Price;
		private string _Qty;
		private string _Currency;
		private string _Exchange;
		private string _Income;
		private string _IncomeCNY;
		private string _IncomeGet;
		private bool? _IsIncome;
		private string _IncomeDate;
		private string _UserIncome;
		private int? _UserIncomeID;
		private int _GetID;
		private string _Note;
		private bool? _IsSelect;
		private int? _UserCreateID;
		private string _UserCreate;
		private string _CreateDate;
		private int? _UserModifyID;
		private string _UserModify;
		private string _ModifyDate;
	 
		/// <summary>
		/// 
		/// </summary>
		public int UID
		{
			get{ return _UID; }
			set
			{
				this.OnPropertyValueChange(_.UID,_UID,value);
				this._UID = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? BillID
		{
			get{ return _BillID; }
			set
			{
				this.OnPropertyValueChange(_.BillID,_BillID,value);
				this._BillID = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string BillNo
		{
			get{ return _BillNo; }
			set
			{
				this.OnPropertyValueChange(_.BillNo,_BillNo,value);
				this._BillNo = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? SeqNO
		{
			get{ return _SeqNO; }
			set
			{
				this.OnPropertyValueChange(_.SeqNO,_SeqNO,value);
				this._SeqNO = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string FeeType
		{
			get{ return _FeeType; }
			set
			{
				this.OnPropertyValueChange(_.FeeType,_FeeType,value);
				this._FeeType = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Price
		{
			get{ return _Price; }
			set
			{
				this.OnPropertyValueChange(_.Price,_Price,value);
				this._Price = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Qty
		{
			get{ return _Qty; }
			set
			{
				this.OnPropertyValueChange(_.Qty,_Qty,value);
				this._Qty = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Currency
		{
			get{ return _Currency; }
			set
			{
				this.OnPropertyValueChange(_.Currency,_Currency,value);
				this._Currency = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Exchange
		{
			get{ return _Exchange; }
			set
			{
				this.OnPropertyValueChange(_.Exchange,_Exchange,value);
				this._Exchange = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Income
		{
			get{ return _Income; }
			set
			{
				this.OnPropertyValueChange(_.Income,_Income,value);
				this._Income = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string IncomeCNY
		{
			get{ return _IncomeCNY; }
			set
			{
				this.OnPropertyValueChange(_.IncomeCNY,_IncomeCNY,value);
				this._IncomeCNY = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string IncomeGet
		{
			get{ return _IncomeGet; }
			set
			{
				this.OnPropertyValueChange(_.IncomeGet,_IncomeGet,value);
				this._IncomeGet = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public bool? IsIncome
		{
			get{ return _IsIncome; }
			set
			{
				this.OnPropertyValueChange(_.IsIncome,_IsIncome,value);
				this._IsIncome = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string IncomeDate
		{
			get{ return _IncomeDate; }
			set
			{
				this.OnPropertyValueChange(_.IncomeDate,_IncomeDate,value);
				this._IncomeDate = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string UserIncome
		{
			get{ return _UserIncome; }
			set
			{
				this.OnPropertyValueChange(_.UserIncome,_UserIncome,value);
				this._UserIncome = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? UserIncomeID
		{
			get{ return _UserIncomeID; }
			set
			{
				this.OnPropertyValueChange(_.UserIncomeID,_UserIncomeID,value);
				this._UserIncomeID = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public int GetID
		{
			get{ return _GetID; }
			set
			{
				this.OnPropertyValueChange(_.GetID,_GetID,value);
				this._GetID = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string Note
		{
			get{ return _Note; }
			set
			{
				this.OnPropertyValueChange(_.Note,_Note,value);
				this._Note = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public bool? IsSelect
		{
			get{ return _IsSelect; }
			set
			{
				this.OnPropertyValueChange(_.IsSelect,_IsSelect,value);
				this._IsSelect = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? UserCreateID
		{
			get{ return _UserCreateID; }
			set
			{
				this.OnPropertyValueChange(_.UserCreateID,_UserCreateID,value);
				this._UserCreateID = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string UserCreate
		{
			get{ return _UserCreate; }
			set
			{
				this.OnPropertyValueChange(_.UserCreate,_UserCreate,value);
				this._UserCreate = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string CreateDate
		{
			get{ return _CreateDate; }
			set
			{
				this.OnPropertyValueChange(_.CreateDate,_CreateDate,value);
				this._CreateDate = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public int? UserModifyID
		{
			get{ return _UserModifyID; }
			set
			{
				this.OnPropertyValueChange(_.UserModifyID,_UserModifyID,value);
				this._UserModifyID = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string UserModify
		{
			get{ return _UserModify; }
			set
			{
				this.OnPropertyValueChange(_.UserModify,_UserModify,value);
				this._UserModify = value;
			}
		}
		/// <summary>
		/// 
		/// </summary>
		public string ModifyDate
		{
			get{ return _ModifyDate; }
			set
			{
				this.OnPropertyValueChange(_.ModifyDate,_ModifyDate,value);
				this._ModifyDate = value;
			}
		}
		#endregion

		#region Method
		/// <summary>
		/// 获取列信息
		/// </summary>
		public override Field[] GetFields()
		{
			return new Field[] {
				_.UID,
				_.BillID,
				_.BillNo,
				_.SeqNO,
				_.FeeType,
				_.Price,
				_.Qty,
				_.Currency,
				_.Exchange,
				_.Income,
				_.IncomeCNY,
				_.IncomeGet,
				_.IsIncome,
				_.IncomeDate,
				_.UserIncome,
				_.UserIncomeID,
				_.GetID,
				_.Note,
				_.IsSelect,
				_.UserCreateID,
				_.UserCreate,
				_.CreateDate,
				_.UserModifyID,
				_.UserModify,
				_.ModifyDate
			};
		}
		/// <summary>
		/// 获取值信息
		/// </summary>
		public override object[] GetValues()
		{
			return new object[] {
				_UID,
				_BillID,
				_BillNo,
				_SeqNO,
				_FeeType,
				_Price,
				_Qty,
				_Currency,
				_Exchange,
				_Income,
				_IncomeCNY,
				_IncomeGet,
				_IsIncome,
				_IncomeDate,
				_UserIncome,
				_UserIncomeID,
				_GetID,
				_Note,
				_IsSelect,
				_UserCreateID,
				_UserCreate,
				_CreateDate,
				_UserModifyID,
				_UserModify,
				_ModifyDate
			};
		} 
		/// <summary>
		/// 设置字段值
		/// </summary>
		public override void SetValue(string fieldName, object value)
        {
            switch (fieldName)
            { 
				case "UID":
                    this._UID = DataHelper.ConvertValue<int>(value);
                    break; 
				case "BillID":
                    this._BillID = DataHelper.ConvertValue<int?>(value);
                    break; 
				case "BillNo":
                    this._BillNo = DataHelper.ConvertValue<string>(value);
                    break; 
				case "SeqNO":
                    this._SeqNO = DataHelper.ConvertValue<int?>(value);
                    break; 
				case "FeeType":
                    this._FeeType = DataHelper.ConvertValue<string>(value);
                    break; 
				case "Price":
                    this._Price = DataHelper.ConvertValue<string>(value);
                    break; 
				case "Qty":
                    this._Qty = DataHelper.ConvertValue<string>(value);
                    break; 
				case "Currency":
                    this._Currency = DataHelper.ConvertValue<string>(value);
                    break; 
				case "Exchange":
                    this._Exchange = DataHelper.ConvertValue<string>(value);
                    break; 
				case "Income":
                    this._Income = DataHelper.ConvertValue<string>(value);
                    break; 
				case "IncomeCNY":
                    this._IncomeCNY = DataHelper.ConvertValue<string>(value);
                    break; 
				case "IncomeGet":
                    this._IncomeGet = DataHelper.ConvertValue<string>(value);
                    break; 
				case "IsIncome":
                    this._IsIncome = DataHelper.ConvertValue<bool?>(value);
                    break; 
				case "IncomeDate":
                    this._IncomeDate = DataHelper.ConvertValue<string>(value);
                    break; 
				case "UserIncome":
                    this._UserIncome = DataHelper.ConvertValue<string>(value);
                    break; 
				case "UserIncomeID":
                    this._UserIncomeID = DataHelper.ConvertValue<int?>(value);
                    break; 
				case "GetID":
                    this._GetID = DataHelper.ConvertValue<int>(value);
                    break; 
				case "Note":
                    this._Note = DataHelper.ConvertValue<string>(value);
                    break; 
				case "IsSelect":
                    this._IsSelect = DataHelper.ConvertValue<bool?>(value);
                    break; 
				case "UserCreateID":
                    this._UserCreateID = DataHelper.ConvertValue<int?>(value);
                    break; 
				case "UserCreate":
                    this._UserCreate = DataHelper.ConvertValue<string>(value);
                    break; 
				case "CreateDate":
                    this._CreateDate = DataHelper.ConvertValue<string>(value);
                    break; 
				case "UserModifyID":
                    this._UserModifyID = DataHelper.ConvertValue<int?>(value);
                    break; 
				case "UserModify":
                    this._UserModify = DataHelper.ConvertValue<string>(value);
                    break; 
				case "ModifyDate":
                    this._ModifyDate = DataHelper.ConvertValue<string>(value);
                    break; 
            }
        }
		/// <summary>
		/// 获取字段值
		/// </summary>
        public override object GetValue(string fieldName)
        {
            switch (fieldName)
            { 
				case "UID":
                    return this._UID; 
				case "BillID":
                    return this._BillID; 
				case "BillNo":
                    return this._BillNo; 
				case "SeqNO":
                    return this._SeqNO; 
				case "FeeType":
                    return this._FeeType; 
				case "Price":
                    return this._Price; 
				case "Qty":
                    return this._Qty; 
				case "Currency":
                    return this._Currency; 
				case "Exchange":
                    return this._Exchange; 
				case "Income":
                    return this._Income; 
				case "IncomeCNY":
                    return this._IncomeCNY; 
				case "IncomeGet":
                    return this._IncomeGet; 
				case "IsIncome":
                    return this._IsIncome; 
				case "IncomeDate":
                    return this._IncomeDate; 
				case "UserIncome":
                    return this._UserIncome; 
				case "UserIncomeID":
                    return this._UserIncomeID; 
				case "GetID":
                    return this._GetID; 
				case "Note":
                    return this._Note; 
				case "IsSelect":
                    return this._IsSelect; 
				case "UserCreateID":
                    return this._UserCreateID; 
				case "UserCreate":
                    return this._UserCreate; 
				case "CreateDate":
                    return this._CreateDate; 
				case "UserModifyID":
                    return this._UserModifyID; 
				case "UserModify":
                    return this._UserModify; 
				case "ModifyDate":
                    return this._ModifyDate; 
				default :
                    return null;
            } 
        }



		#endregion

		#region _Field
		/// <summary>
		/// 字段信息
		/// </summary>
		public class _
		{
			/// <summary>
			/// * 
			/// </summary>
			public readonly static Field All = new Field("*","vIncome");
 
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field UID = new Field("UID","vIncome","UID");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field BillID = new Field("BillID","vIncome","BillID");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field BillNo = new Field("BillNo","vIncome","BillNo");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field SeqNO = new Field("SeqNO","vIncome","SeqNO");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field FeeType = new Field("FeeType","vIncome","FeeType");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field Price = new Field("Price","vIncome","Price");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field Qty = new Field("Qty","vIncome","Qty");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field Currency = new Field("Currency","vIncome","Currency");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field Exchange = new Field("Exchange","vIncome","Exchange");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field Income = new Field("Income","vIncome","Income");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field IncomeCNY = new Field("IncomeCNY","vIncome","IncomeCNY");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field IncomeGet = new Field("IncomeGet","vIncome","IncomeGet");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field IsIncome = new Field("IsIncome","vIncome","IsIncome");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field IncomeDate = new Field("IncomeDate","vIncome","IncomeDate");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field UserIncome = new Field("UserIncome","vIncome","UserIncome");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field UserIncomeID = new Field("UserIncomeID","vIncome","UserIncomeID");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field GetID = new Field("GetID","vIncome","GetID");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field Note = new Field("Note","vIncome","Note");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field IsSelect = new Field("IsSelect","vIncome","IsSelect");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field UserCreateID = new Field("UserCreateID","vIncome","UserCreateID");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field UserCreate = new Field("UserCreate","vIncome","UserCreate");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field CreateDate = new Field("CreateDate","vIncome","CreateDate");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field UserModifyID = new Field("UserModifyID","vIncome","UserModifyID");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field UserModify = new Field("UserModify","vIncome","UserModify");
			/// <summary>
			/// 
			/// </summary>
			public readonly static Field ModifyDate = new Field("ModifyDate","vIncome","ModifyDate");
		}
		#endregion

 
	}
}

